﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Project01
{
    class Car:Object
    {
        public Car(Vector2 dimension, Vector2 location, int mass, GraphicsDevice graphicDevice)
            : base(dimension, location, mass, graphicDevice)
        {
            ObjTexture = CreateRectangle((int)dimension.X, (int)dimension.Y, Color.Navy);
        }

        public void Draw(SpriteBatch spriteBatch)
        {            
            spriteBatch.Draw(ObjTexture, Location, Color.White);
            spriteBatch.Draw(XCoordinate, XCoorPosition, Color.White);
            spriteBatch.Draw(YCoordinate, YCoorPosition, Color.White);
        }
        
    }
}
